﻿#ifndef ESAYVIEW_H
#define ESAYVIEW_H
#include<QGraphicsView>
#include<QPainter>
#include<QIcon>
#include<QPalette>
#include<QBrush>
#include<QGraphicsScene>
#include "qgun.h"
#include<QResizeEvent>
#include "qfish.h"
#include<QTimer>
#include "qbullet.h"
//游戏场景类
class EsayView:public QGraphicsView
{
public:
    EsayView();
    void resizeEvent(QResizeEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
private:
    QGraphicsScene *scene;
    QGun *gun;
    QFish *fish1;
    QFish *fish2;
    QFish *fish3;
    QFish *fish4;
    QFish *fish5;
    QTimer *timer;
};

#endif // ESAYVIEW_H
